﻿using UFrame;
using UnityEngine;

public class TestAudio : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        AudioMa.Init();
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyUp(KeyCode.A))
        {
            AudioMa.AddAudioConfig(new AudioConfig()
            {
                fileName = "Coins(16)",
                ignoreTime = 2f,
            });
        }

        if (Input.GetKeyUp(KeyCode.Q))
        {
            AudioMa.PlayAudio("Assets/bawAsset/Audio/Coins(16).wav");
        }
        if (Input.GetKeyUp(KeyCode.W))
        {
            AudioMa.PlayAudio("Assets/bawAsset/Audio/Coins(16).wav");
        }
    }
}
